package com.gotop.sms.fysms;

import java.util.Date;

import com.app.util.DateTimeUtil;

/**
 * UserBacterin entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class UserBacterin implements java.io.Serializable {

	// Fields

	private Integer id;

	private Integer userId;
	private String userName;

	private Integer bacterinId;
	
	private String bacterinName;

	private Date orderTime;
	
	private String orderTimeS;

	private Date injectTime;
	
	private Date 	weakTime;
	private String injectTimeS;
	private String phone;
	private Integer state;
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public void setBrithday(String brithday) {
		this.brithday = brithday;
	}

	private String type;
	private String sex;
	private String brithday;
	public String getBrithday() {
		return brithday;
	}

	public void setBrithday(Date brithday) {
		if(brithday!=null){
			this.brithday=com.app.util.DateTimeUtil.getDateTime(brithday, "yyyy-MM-dd");
		}
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	private Float price;

	// Constructors

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	/** default constructor */
	public UserBacterin() {
	}

	/** full constructor */
	public UserBacterin(Integer userId, Integer bacterinId, Date orderTime,
			Date injectTime) {
		this.userId = userId;
		this.bacterinId = bacterinId;
		this.orderTime = orderTime;
		this.injectTime = injectTime;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getBacterinId() {
		return this.bacterinId;
	}

	public void setBacterinId(Integer bacterinId) {
		this.bacterinId = bacterinId;
	}

	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
//		this.orderTimeS=DateTimeUtil.;
		if(null!=this.orderTime)
		this.orderTimeS=com.app.util.DateTimeUtil.getDateTime(this.orderTime, "yyyy-MM-dd");
		
	}

	public Date getInjectTime() {
		return this.injectTime;
	}

	public void setInjectTime(Date injectTime) {
		this.injectTime = injectTime;
		if(null!=this.injectTime)
		this.injectTimeS=com.app.util.DateTimeUtil.getDateTime(this.injectTime, "yyyy-MM-dd");
	}

	public String getBacterinName() {
		return bacterinName;
	}

	public void setBacterinName(String bacterinName) {
		this.bacterinName = bacterinName;
	}

	public String getOrderTimeS() {
		return orderTimeS;
	}

	public void setOrderTimeS(String orderTimeS) {
		this.orderTimeS = orderTimeS;
	}

	public String getInjectTimeS() {
		return injectTimeS;
	}

	public void setInjectTimeS(String injectTimeS) {
		this.injectTimeS = injectTimeS;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getWeakTime() {
		return weakTime;
	}

	public void setWeakTime(Date weakTime) {
		this.weakTime = weakTime;
	}

}